import Vue from 'vue'
import App from './App'
import uView from "uview-ui";
Vue.use(uView);
Vue.config.productionTip = false
// 引入api
import {
	myRequest
} from './util/api.js'
import store from './store/index.js'
// 使用 COOL-UNI 组件时，附加的一些配置
import ClUni from "cl-uni";
//引入colorrUI插件
// import cuCustom from './colorui/components/cu-custom.vue'
import tabBar from './component/tabbar.vue'
import TaskList from './components/task-list/task-list.vue'
import TaskDetail from './components/task-detail/TaskDetail.vue'
import Test from './components/test/test.vue'
import Test1 from './components/text1/text1.vue'
Vue.component('tabBar', tabBar)
Vue.component('TaskList', TaskList)
Vue.component('TaskDetail', TaskDetail)
Vue.component('Test1', Test1)
Vue.prototype.$http = myRequest // 挂载到Vue
// Vue.prototype.$imgurl ='http://192.168.2.87'//图片地址
Vue.prototype.$imgurl ='http://192.168.2.115'//图片地址
Vue.prototype.$store = store;
import requestUtil from "./static/js/common/requestUtil.js"
Vue.prototype.$post = requestUtil.post;
Vue.prototype.$upload = requestUtil.upLoad;
Vue.prototype.$chooseImageUpload = requestUtil.choose_image_upload;
import util from "./static/js/common/util.js"

Vue.prototype.getPlat = util.getPlat;
Vue.prototype.isWeixin = util.isWeixin;
Vue.prototype.isApp = util.isApp;
Vue.prototype.isH5 = util.isH5;
Vue.prototype.getSysInfo = util.getSysInfo;

Vue.prototype.getQuery = util.getQuery;
Vue.prototype.$naviExter = util.jump_to_exter_page;
Vue.prototype.$navigateTo = util.navigateTo;
Vue.prototype.$redirectTo = util.redirectTo;
Vue.prototype.$switchTab = util.switchTab;
Vue.prototype.$reLaunch = util.reLaunch;

Vue.prototype.$dataLocal = util.data_local;
Vue.prototype.$dataSession = util.data_session;

Vue.prototype.$toast = util.toast;




App.mpType = 'app'

const app = new Vue({
	...App
})
app.$mount()
